<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnNameInTaskWorkOrder extends AbstractMigration
{
    public function up()
    {
        $this->table('task_work_order')
            ->addColumn('name', 'string', ['default' => '', 'limit' => 255, 'comment' => '名称'])
            ->save();
    }

    public function down()
    {
        $this->table('task_work_order')
            ->removeColumn('name')
            ->save();
    }
}
